package com.duvee.uiautomator.thread;

import android.os.Handler;

import com.duvee.uiautomator.bean.PhoneInfoBean;

/**
 * 获取产品对应ID信息
 * 
 * @author duvee 废弃--20160523 --通过网络请求有不确定因素，后期从数据安全方面考虑可能会重新启用
 * 
 */
public class ProductInfo implements Runnable {
	String url = "http://120.194.28.114:8082/lbt-ls-server/club/cdynamiccomment/getPhoneInfo.do?";
	String productName;
	Handler handler;
	PhoneInfoBean phoneInfo = new PhoneInfoBean();

	public ProductInfo(String productName, Handler hanlder) {
		this.productName = productName;
		this.handler = hanlder;
	}

	@Override
	public void run() {
		/*
		 * List<NameValuePair> params = new ArrayList<NameValuePair>();
		 * params.add(new BasicNameValuePair("phonemodel", productName));
		 * 
		 * Message msg = handler.obtainMessage(); Bundle bundle = new Bundle();
		 * ArrayList<PhoneInfoBean> list = new ArrayList<PhoneInfoBean>();
		 * list.add(phoneInfo); bundle.putParcelableArrayList("phoneInfo",
		 * (ArrayList<? extends Parcelable>) list); msg.setData(bundle);
		 * handler.sendMessage(msg);
		 */
	}
}
